package agent

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type GetRebatesLevelManagerMapLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

// 返佣等级管理--映射
func NewGetRebatesLevelManagerMapLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRebatesLevelManagerMapLogic {
	return &GetRebatesLevelManagerMapLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *GetRebatesLevelManagerMapLogic) GetRebatesLevelManagerMap() (resp *types.RebatesLevelManagerMap, err error) {
	_list := []types.RebatesLevelManagerMapOne{
		{
			Level:   1,
			FeeRate: 0.01,
		},
		{
			Level:   2,
			FeeRate: 0.02,
		},
		{
			Level:   3,
			FeeRate: 0.03,
		},
	}

	resp = &types.RebatesLevelManagerMap{
		List: _list,
	}

	return
}
